package com.zzb.framework.starter.xxljob.model;

import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zzb.framework.common.minimalist.MinimalistEntity;
import lombok.Data;

/**
 * .___  ___.  _______  __  ____    ____  __         __   __       ___
 * |   \/   | |   ____||  | \   \  /   / |  |       |  | |  |     /   \
 * |  \  /  | |  |__   |  |  \   \/   /  |  |       |  | |  |    /  ^  \
 * |  |\/|  | |   __|  |  |   \_    _/   |  | .--.  |  | |  |   /  /_\  \
 * |  |  |  | |  |____ |  |     |  |     |  | |  `--'  | |  |  /  _____  \
 * |__|  |__| |_______||__|     |__|     |__|  \______/  |__| /__/     \__\
 *
 *  实体类
 * @author : ZZB
 * @since : 2019-09-10 11:45:13
 */
@Data
@TableName("xxl_job_log")
public class XxlJobLog implements MinimalistEntity<Long> {
    @TableId(value = "id", type = IdType.UUID)
    private Long id; //
    @TableField(value = "job_group")
    private Integer jobGroup; //执行器主键ID
    @TableField(value = "job_id")
    private Integer jobId; //任务，主键ID
    @TableField(value = "executor_address")
    private String executorAddress; //执行器地址，本次执行的地址
    @TableField(value = "executor_handler")
    private String executorHandler; //执行器任务handler
    @TableField(value = "executor_param")
    private String executorParam; //执行器任务参数
    @TableField(value = "executor_sharding_param")
    private String executorShardingParam; //执行器任务分片参数，格式如 1/2
    @TableField(value = "executor_fail_retry_count")
    private Integer executorFailRetryCount; //失败重试次数
    @TableField(value = "trigger_time")
    private Date triggerTime; //调度-时间
    @TableField(value = "trigger_code")
    private Integer triggerCode; //调度-结果
    @TableField(value = "trigger_msg")
    private String triggerMsg; //调度-日志
    @TableField(value = "handle_time")
    private Date handleTime; //执行-时间
    @TableField(value = "handle_code")
    private Integer handleCode; //执行-状态
    @TableField(value = "handle_msg")
    private String handleMsg; //执行-日志
    @TableField(value = "alarm_status")
    private Integer alarmStatus; //告警状态：0-默认、1-无需告警、2-告警成功、3-告警失败

}
